package com.ruoyi.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.MemberStoredValueCard;
import com.ruoyi.system.dto.MemberStoredValueCardDTO;
import com.ruoyi.system.dto.TransferAccountsDTO;
import com.ruoyi.system.dto.TransferDTO;

import java.util.List;

/**
 * 会员储值卡信息Service接口
 */
public interface IMemberStoredValueCardService extends IService<MemberStoredValueCard> {

    IPage<MemberStoredValueCard> byPage(MemberStoredValueCard memberStoredValueCard);

    Boolean add(MemberStoredValueCard memberStoredValueCard);

    Boolean recharge(MemberStoredValueCard memberStoredValueCard);

    Boolean rechargeCard(MemberStoredValueCardDTO cardDTO);

    Boolean give(MemberStoredValueCardDTO cardDTO);

    Boolean refund(MemberStoredValueCardDTO cardDTO);

    Boolean transfer(TransferDTO transferDTO);

    Boolean transferAccounts(TransferAccountsDTO transferAccountsDTO);

    boolean integralExchange(MemberStoredValueCardDTO cardDTO);
}
